BuffEffect1 = BaseBuffEffect:new();
BuffEffect1.__index = BuffEffect1;

function BuffEffect1:new()
    local object = {};
    setmetatable(object, BuffEffect1);
    return object;
end

function BuffEffect1:action(fight,buff,...)
    local fighter = buff.source;
    local target = buff.target;
    local buffEffectValue = decodeJsonStrToTabel(buff.buffBean.f_BuffEffectValue);

    if buffEffectValue[1] > 0 and buffEffectValue[2] > 0 and buff.buffBean.f_BuffRound then
        target:showHitFly(buff.buffBean.f_BuffRound,buffEffectValue[1],buffEffectValue[2]);
    end  
    return EnumConst.IBuffEffect.SUCCESS;
end
